package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyTravelTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MyTravelTableMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MyTravelTable entity);

    MyTravelTable selectByPrimaryKey(Long id);

    List<MyTravelTable> selectAll();


    int updateByPrimaryKey(MyTravelTable entity);


    void deleteRelation(MyTravelTable entity);


    int selectTravelCount(@Param("userId") Long userId, @Param("travelStatus") String travelStatus);

    List<MyTravelTable> selectListByStrategy(@Param("userId") Long userId, @Param("travelStatus") String travelStatus);

    void updateByTravelStatus(@Param("id") Long id, @Param("travelStatus") Long travelStatus);
}